﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Text;
public partial class wml : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string domain = URL.getDomain(Request.Url.ToString());
        string domainSuf = URL.getDomainSuf(domain);
        string directory = "";
        if (Request.QueryString != null && Request.QueryString["flag"] != null)
        {
            directory = Request.QueryString["flag"];
        }
        else
        {
            directory = "main";
        }
        contentP.InnerHtml = WmlData.buildJsonTWml(domainSuf,directory);
    }
}